<%--
    Document   : MedVerificacion
    Created on : 14/04/2010, 05:06:19 PM
    Author     : LAPTOP01
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://struts.apache.org/tags-bean"  prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="/tags/c" prefix="c"%>

<script src="scripts/ajax.js" language="JavaScript"></script>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jquery.validate.js" type="text/javascript"></script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="lib/css/estilos.css" type="text/css">
        <title>Sistemas de Informacion Institucional</title>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript"  >
            $(document).ready(function() {
                // use this to reset a single form
             

                $("#btnIngresar").click(function() {
                    var sw=true;

                    if($("#txtUsuario").get(0).value==""){
                        alert("Ingresar el Usuario");
                        sw=false;
                        return false;
                    }
                    if($("#txtPassword").get(0).value==""){
                        alert("Ingresar el Password");
                        sw=false;
                        return false;
                    }
                    
                    if(sw==true){
                        document.PEIForm.submit();
                    }

                });
            });
        </script>

    </head>
    <body >
        <br><br><br><br><br><br>
        <center>
            <table background="images/ipd2.jpg" width="800" height="550" >
                <tr>
                    <td width="530" height="194"  align="center">  </td>
                    <td width="258">                    </td>
                </tr>
                <tr>
                    <td height="176"  align="center" >                    </td>
                    <td>

                        <html:form action="Usuario.do?dispatch=ingresar" styleId="PEIForm">
                            Usuario : <html:text property="usuario_name" styleId="txtUsuario" /><br><br>
                            Password : <html:password property="usuario_password" styleId="txtPassword" /><br><br>
                            <html:submit value="Ingresar" styleId="btnIngresar"/>
                        </html:form>
                        <br><br>
                        <a  href="Usuario.do?dispatch=registro" > Registrarse</a>
                    </td>
                </tr>
                <tr>
                    <td width="530" height="170"  align="center">&nbsp;</td>
                    <td width="258">                    </td>
                </tr>

            </table>
        </center>
    </body>
</html>
